const { contextBridge, ipcRenderer } = require('electron')

exports.initPreload = function () {
    contextBridge.exposeInMainWorld('appBridge', {
        userConfig: {
            getSlogan: (request) => {
                return ipcRenderer.sendSync('userConfig.getSlogan', request)
            },
            getAvatar: (request) => {
                return ipcRenderer.sendSync('userConfig.getAvatar', request)
            }
        },
    })
}